-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Codebase indexing and semantic search tool #2390
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
… robust implementation
Member
Author
|
I am closing this PR cause I messed up and ruined the history, I will open a new one and reference it here #3137 |
SmartManoj
pushed a commit
to SmartManoj/Raa-Code
that referenced
this pull request
May 6, 2025
* RooCodeInc#2272 fix 'see more' not showing up * changeset & format --------- Co-authored-by: Andrei Edell <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context
This PR implements codebase indexing using OpenAI embeddings models and Qdrant as a vector storage.
Also allows a new tool
codebase_searchwhich allows Roo to use natural language to search the code indexed.The implementation reuses the tree sitter queries already present in the project.
Implementation
The implementation uses the tree sitter to parse code files, the list of compatible files is already defined in the project and is based on the queries already implemented. The code segments have to comply with a certain size to be indexed, if the code segment is too big, the parser will instead process the each individual children instead.
The quality of the code segments depends on the tree sitter queries already defined.
After the initial indexing, the codebase indexing service will start a file watcher to watch for any changes in the files it already indexed, this includes deleted files.
Screenshots
How to Test
codebase_searchtool will be made available to new tasks.Note: The tool is conditionally added to the system prompt, if the service is disabled the tool will be completely missing from the system prompt.
Get in Touch
You know where to find me.